#include "gd32f4xx.h"
#include "systick.h"
#include "bsp_uart.h"
#include "delay.h"
#include <stdio.h>
#include "common.h"

int main(void)
{
	systick_config();  /* 系统滴答配置 */
	nvic_priority_group_set(NVIC_PRIGROUP_PRE4_SUB0);  /* 中断优先级分组,这里分组4:抢占16bit从0bit */
	bsp_uart_periph_init();  /* 初始化串口外设 */
	
	printf("\r\n==========================================");
    printf("\r\n  This is my first Bootloader Program     ");
    printf("\r\n                                          ");
	printf("\r\n         Author: Xie Yuan     GDOU        ");
    printf("\r\n                                          ");
	printf("\r\n          Version: 1.0                    ");
    printf("\r\n==========================================");
    printf("\r\n\r\n");
	Main_Menu();
	while(1) 
	{

	}
}
